package com.jichangxiu.framework.factory;

import cn.hutool.extra.spring.SpringUtil;
import com.jichangxiu.framework.filter.CaptchaFilter;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class CaptchaFactory {

    public static CaptchaFilter captchaFilter() {
        CaptchaFilter captchaFilter = null;
        try {
            captchaFilter = SpringUtil.getBean(CaptchaFilter.class);
        } catch (Exception exception) {
            log.debug("【CaptchaFactory】系统没有配置登录验证码拦截器");
        }
        return captchaFilter;
    }

}
